/* index.css */
.chat-container {
  max-width: 100%;  /* 取消最大宽度限制，让容器占满父级宽度 */
  margin: 0 auto;
  padding: 40px 20px;
}

.title {
  color: #303133;
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.input-container {
  margin-bottom: 30px;
  gap: 10px;
}

/* 调整结果容器的顶部间距 */
.response-container {
  margin-top: 20px;
}

/* 标题居中（可选） */
.title {
  text-align: center;
}

.response-content {
  font-size: 16px;
  line-height: 1.8;
  color: #606266;
  white-space: normal;
}

/* 标题样式 */
.response-content h1,
.response-content h2,
.response-content h3,
.response-content h4,
.response-content h5,
.response-content h6 {
  color: #303133;
  margin: 1.2em 0 0.6em;
  font-weight: 600;
}

/* 列表样式 */
.response-content ul,
.response-content ol {
  padding-left: 2em;
  margin: 0.8em 0;
}

/* 代码块样式 */
.response-content pre {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 1em 0;
  overflow-x: auto;
  font-size: 0.95em;
}

.response-content code {
  background: #f8f9fa;
  color: #c7254e;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}

/* 链接样式 */
.response-content a {
  color: #409eff;
  text-decoration: none;
}

.response-content a:hover {
  text-decoration: underline;
}

/* 新增表格样式 */
.response-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.response-content th,
.response-content td {
  border: 1px solid #dcdfe6;
  padding: 8px 12px;
  text-align: left;
}

.response-content th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* 新增引用块样式 */
.response-content blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 4px solid #409eff;
  background-color: #f8f9fa;
  color: #606266;
}
